#include <iostream>
class Int
{
public:
    Int(int a)
    {
        std::cout << "带参构造" << std::endl;
        m_a = a; 
    }

    ~Int()
    {
        std::cout << "~" << std::endl;
    }

private:
    int m_a;
};


int main()
{
    Int A(10);
    /* 创建了一个临时对象，隐式转换 */
    A = 20;
    std::cout << "-----------\n";
    return 0;
}